<?php
/**
 * Copyright (C) 2009  Graham Anderson
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

defined('PHPUnit_MAIN_METHOD')
    or define('PHPUnit_MAIN_METHOD', 'ModulesAllTests::main');

require_once dirname(__FILE__) . '/../TestConfig.php';

require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'modules/blogAdmin/PostsControllerTest.php';

/**
 * Static test suite.
 */
class ModulesAllTests extends PHPUnit_Framework_TestSuite
{

    /**
     * Constructs the test suite handler.
     */
    public function __construct ()
    {
        $this->setName('ModulesAllTests');
        $this->addTestSuite('BlogAdmin_PostsControllerTest');
        $this->run();
    }

    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    /**
     * Creates the suite.
     */
    public static function suite()
    {
        return new self();
    }

}

if (PHPUnit_MAIN_METHOD == 'ModulesAllTests::main') {
    ModulesAllTests::main();
}